package com.situ.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Cookie3Servlet extends HttpServlet {
	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		Cookie cookie1 = new Cookie("xiaosan", "xiaosi");
		Cookie cookie2 = new Cookie("xiaowu", "xiaoliu");
		resp.addCookie(cookie1);
		resp.addCookie(cookie2);
		
	}

}
